package com.day20.test3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;
import java.util.Set;

public class test2 {

    public static void main(String[] args) {
        ApplicationContext a=new ClassPathXmlApplicationContext("application.xml");

        test1 t=(test1) a.getBean("test1");

        List<String> l=t.getList();
        for (String s:l) {
            System.out.println(s);

        }

        System.out.println();

        Set<String> s=t.getSet();
        for (String str:s) {
            System.out.println(str);
        }

        System.out.println();
        System.out.println(t.getName());

    }

}
